package com.saxing.testflux.action;

import com.saxing.testflux.action.base.ActionsCreatorFactory;
import com.saxing.testflux.dispatcher.Dispatcher;

/**
 * Created by saxing on 17-7-9.
 */

public class MainActionCreator extends ActionsCreatorFactory {
    public MainActionCreator(Dispatcher dispatcher) {
        super(dispatcher);
    }

    public void setText(String text){
        actionsCreator.sendMessage(new MainAction.MessageActionEntity().setText(text)
                .buildWithType(MainAction.ACTION_NEW_MESSAGE));
    }
}
